luci-theme-material: update cascade.css to use first-of-type instead of last/first...
authorFlorian Eckert <[email protected]>
Thu, 6 Mar 2025 09:31:37 +0000 (10:31 +0100)
committerPaul Donald <[email protected]>
Thu, 6 Mar 2025 17:21:32 +0000 (11:21 -0600)
commit47d26bcb62e8e7104f244320d80e6dc30ed804ba
treeb97f5b9448c0fec7eabd5b44f38dd3a830641bf4
parent193f802e5a5673a9c9957c0f6e774d82196623f0
luci-theme-material: update cascade.css to use first-of-type instead of last/first-child

first-child:
Selects an element that is the first child of its parent. The element must
be the very first child of its parent, regardless of its type.

first-of-type:
Selects the first element of its type among its siblings. The element must
be the first of its type (e.g., <p>, <div>, etc.) within its parent, but it
does *not* have to be the first child.

Makes the CSS usage more robust if the layout changes and new html elements
are added.

Signed-off-by: Florian Eckert <[email protected]>
themes/luci-theme-material/htdocs/luci-static/material/cascade.css